
package modelo;

import carrito.Carrito;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;


public class DAO {
    private DataSource ds;

    public DAO(DataSource ds) {
        this.ds = ds;
    }

    public void realizarCompra(Carrito c) throws SQLException {
        Connection con = ds.getConnection();
        
        con.close();
    }
    
}
